<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('categorie/'.($form->getObject()->isNew() ? 'create' : 'update?cat_id='.$form->getObject()->getCatId())) ?>" method="post">

<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>

<?php echo $form->renderHiddenFields(false) ?>
<?php echo $form->renderGlobalErrors() ?>

<table>
	<tbody>
		<?php echo $form['cat_categorie']->renderRow() ?>
	</tbody>
</table>

<input type="submit" value="Enregistrer" />

</form>
